<?php
header("Content-type: text/html;charset=utf-8");
include('include/common.php'); 
$result = mysql_query("SELECT * FROM ljcms_config ");
$result1 = mysql_query("SELECT * FROM ljcms_category limit 8 ");
?>
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width,user-scalable=0,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>
<?php
   while($r = @mysql_fetch_array($result))
	{
     echo $r['sitetitle'];
	}
  ?>
</title>
<meta name="keywords" content="
<?php
  while($r = @mysql_fetch_array($result))
	{
     echo $r['metakeyword'];
	}
  ?>" />
<meta name="description" content="
<?php
  while($r = @mysql_fetch_array($result))
	{
     echo $r['metadescription'];
	}
  ?>
"/>
<link href="images/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="images/jquery.min.js"></script>
<script type="text/javascript" src="images/global.js"></script>
<script type="text/javascript" src="images/slide_show.js"></script>
</head>
<body>
<div id="wrapper">
 <div id="header">
  <em class="logo">》》</em>
   <em></em>
  <a href="catalog.php" class="siteMap"></a></div>
 <div id="index">
  <div class="slideShow" style="max-width: 100%;">
 <div class="slideBox" style="width: 100%; overflow: hidden; position: relative; height: 362px;">
 <ul class="slides" style="width: 615%; height: 362px; position: relative; transition-duration: 0s; transform: translate3d(-640px, 0px, 0px);">
 <?php
header("Content-type: text/html;charset=utf-8");
include('include/common.php'); 
  $result = mysql_query("SELECT * FROM ljcms_adsfigure where showtime = 1");
   while($r = @mysql_fetch_array($result))
	   {

  ?>
 
 <li style="float: left; list-style: none; position: relative; width: 640px;height: 400px;" class="bx-clone"><a href=" " target="_blank"><img  src="<?php echo $r['uploadfiles']; ?>"></a></li>
   <?php
}
?>
   </ul>
   </div><div class="controlBase hasControl"><div class="controlBox controlDefault"><div class="control"><a href="" data-slide-index="0" class="controlLink active">1</a></div><div class="control"><a href="" data-slide-index="1" class="controlLink">2</a></div><div class="control"><a href="" data-slide-index="2" class="controlLink">3</a></div><div class="control"><a href="" data-slide-index="3" class="controlLink">4</a></div></div></div>
</div>
<script type="text/javascript">

$(document).ready(function(){
 $('.slides').bxSlider({
 });
})

</script>  <div id="mainNav">
   <ul>
   
     
	 
	 <?php 
   while($r1 = @mysql_fetch_array($result1))
	{
   
  ?>
	    <li><a href="info.php?id=<?php echo $r1['catid'];?>"><?php echo $r1['catname'];?></a></li>
     
   <?php 
	}
	?>
       </ul>
  </div>
  <div id="indexSearch"><div class="searchBox">
 <form name="search" method="get" action="productabc.php">
  <input name="search" type="text" class="keyword" autocomplete="off" maxlength="128" value="产品搜索" onClick="formClick(this,&#39;产品搜索&#39;)">
  <input type="submit" class="btnSearch" value="提交">
 </form>
</div></div>
  <div class="incBox">
 
 <h3><a href="product_category.php" class="more">查看更多商品 &gt;</a>产品展示</h3>

 <div class="productList"> 
<?php
$result8 = mysql_query("SELECT * FROM ljcms_product limit 10 ");
  while($r8 = @mysql_fetch_array($result8))
	{
  ?>
    <dl>
   <dd>
   <p class="img"><a href="product.php?id=<?=$r8["productid"]?>"><img src="<?php echo $r8['uploadfiles']; ?>" width="135" height="135"></a></p>
   <p class="name"><a href="<?php echo $r8['metadescription']; ?>"><?php echo $r8['productname'];?></a></p>
   <p class="price">￥<?php echo $r8['nprice'];?>元</p>
   </dd>
  </dl>
   <?php
   }
   ?>
    </div>
</div>
 
  <div class="incBox">
 <h3><a href="article_category.php" class="more">查看更多文章 &gt;</a>新闻中心</h3>
  <?php
$result6 = mysql_query("SELECT * FROM ljcms_article limit 10");
 while($r6 = @mysql_fetch_array($result6))
	{
  ?>
 <div class="articleList">
 <dl>
   <dt><a href="article.php?id=<?=$r6["articleid"]?>"><?php echo $r6['title']; ?></a></dt>
   <dd><em>发布时间：<?php echo $r6['delimitname']; ?></em><em>点击数：<?php echo $r6['hits']; ?></em></dd>
  </dl>
   </div>
    <?php
   }
   ?>
</div>
 </div>
 <div id="footer">
 <a href="javascript:;" onFocus="this.blur();" class="goTop">返回顶部</a>
 <ul>
  <li class="footNav"><a href="http://localhost/mobile">手机版</a><a href="http://localhost/">电脑版</a></li>
  <li class="copyRight">企业网站管理系统 2015 All Rights Reserved.</li>
  <li class="powered"><a href="  " target="_blank">企业网站管理系统</a> </li>
 </ul>
</div>
 </div>

</body>
</html>
<?php
  mysql_close($link);
?>
